package com.cloud.api.domain.alarm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.core.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author haohaibo
 * @since 2024-02-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_alarm_reason")
@Schema(name = "AlarmReason", description = "")
public class AlarmReason extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @Schema(description = "报警原因")
    @TableField("reason")
    @NotEmpty(message = "{validation.alarm.reason}")
    @Size(min = 5,max = 100 ,message = "{validation.common.size}")
    private String reason;

    @Schema(description = "解决办法")
    @TableField("solution")
    @NotEmpty(message = "{validation.alarm.solution}")
    @Size(min = 5,max = 200 ,message = "{validation.common.size}")
    private String solution;

    @Schema(description = "报警类别id")
    @TableField("alarm_category")
    @NotEmpty(message = "{validation.alarm.alarmCategory}")
    private String alarmCategory;

}
